<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
   xmlns:f="http://xmlns.jcp.org/jsf/core"
   xmlns:h="http://xmlns.jcp.org/jsf/html"
   xmlns:p="http://primefaces.org/ui"   
   xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
   template="/WEB-INF/templates/business/supplier/template.xhtml">
   
   	<f:metadata>	   	
	   	<f:viewParam name="firstResult" value="#{supplierDeterminedRecordList.firstResult}"></f:viewParam>	
	   	<f:viewParam name="moduleName" value="待定名单管理"></f:viewParam>
   	</f:metadata>
   
   	<ui:define name="supplier_content">
   		
   		<h:form id="queryForm">
			<div class="iethbox_tit">
				<h2>我的待定名单</h2>
			</div>
			<div class="iethbox_table">
				<p:dataTable value="#{supplierDeterminedRecordList.resultList}" var="_determinedRecord">
						
						<p:column>
							<f:facet name="header">录入时间</f:facet>
							<h:outputText value="#{_determinedRecord.undeterminedRoster.enteringDate}"  >
								<f:convertDateTime pattern="yyyy-MM-dd HH:mm:ss"/>
							</h:outputText>
						</p:column>
						
						<p:column rendered="false">
							<f:facet name="header">录入人员</f:facet>
							<h:outputText value="#{_determinedRecord.undeterminedRoster.enteringUser.cnname}" />
						</p:column>
						
						<p:column>
							<f:facet name="header">中介机构名称</f:facet>
							<h:outputText value="#{_determinedRecord.supplier.cnname}" />
						</p:column>
						
						<p:column>
							<f:facet name="header">整改截至日期</f:facet>
							<h:outputText value="#{_determinedRecord.endDate}"  >
								<f:convertDateTime pattern="yyyy-MM-dd"/>
							</h:outputText>
						</p:column>
						<c:set var="status" value="#{_determinedRecord.auditted &amp;&amp; _determinedRecord.recordStatus eq 'Deleted' ? '整改完成' :'整改未完成'}" />
						<p:column>
							<f:facet name="header">整改状态</f:facet>
							#{status}
						</p:column>
						
						<c:set var="editTitle" value="#{empty _determinedRecord.auditted ? '编辑并提交' : '重新编辑并提交'}" />
						<p:column style="text-align: center;width:200px;">
							<f:facet name="header">操作</f:facet>
							<p:button outcome="SupplierDeterminedRecordView.xhtml" value="查看" >
								<f:param name="recordId" value="#{_determinedRecord.id}"></f:param>
							</p:button>
							
						</p:column>
					</p:dataTable>
				</div>
			<ui:include src="/WEB-INF/templates/manage/pagination.xhtml">
				<ui:param name="entityList" value="#{supplierDeterminedRecordList}" />
			</ui:include>
		</h:form>
   	</ui:define>
</ui:composition>
